home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / usenet / sources / volume91 / news / barn_201 / part01 / kill.h < prev    next >
C/C++ Source or Header  |  1991-02-07  |  918b  |  45 lines

  1. /*
  2.  *    File Name:        kill.h
  3.  *    Project:        BARN - Bah's Amiga ReadNews.
  4.  *    Purpose:        Define kill structures.
  5.  *    Author:            Jeff Van Epps
  6.  *    Created:        04 Sep 89
  7.  *    Last Modified:    22 Oct 90
  8.  *    Comments:
  9.  *        Include "regexp.h" before "kill.h".
  10.  *
  11.  *    History:
  12.  *        04 Sep 89/JVE    Created.
  13.  *        22 Oct 90/JVE    New KILL_INFO structure includes regexp pattern.
  14.  */
  15.  
  16. /*
  17.  *    A kill list is a list of kill_info structures.  An article matching any
  18.  *    kill structure will be "killed".
  19.  */
  20.  
  21. typedef struct kill_info {
  22.     char                *fieldname;
  23.     char                *fieldvalue;
  24.     struct regexp        *pattern;
  25.     struct kill_info    *next;            /* ptr to next article in newsgroup */
  26.     } KILL_INFO;
  27.  
  28. /*
  29.  *    Function prototypes.
  30.  */
  31.  
  32. # ifdef sun
  33.  
  34. KILL_INFO    *GetKillList();
  35. void        PutKillList();
  36. void        DestroyKillList();
  37.  
  38. # else
  39.  
  40. KILL_INFO    *GetKillList( char *filename );
  41. void        PutKillList( char *filename, KILL_INFO *root );
  42. void        DestroyKillList( KILL_INFO *root );
  43.  
  44. # endif
  45.